package com.manner.groupon.service.groupon;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manner.groupon.common.BaseResponse;
import com.manner.groupon.common.PageResult;
import com.manner.groupon.model.dto.order.AdminOrderDTO;
import com.manner.groupon.model.dto.search.OrderSearch;
import com.manner.groupon.model.entity.GrouponOrder;
import com.manner.groupon.model.vo.*;

/**
 * @author manner
 * @description 针对表[tb_groupon_order(团购订单表)]的数据库操作Service
 * @createDate 2024-10-13 14:26:25
 */
public interface GrouponOrderService extends IService<GrouponOrder> {

    BaseResponse<PageResult<CouponOrderVo>> search(OrderSearch search);

    BaseResponse<PageResult<CouponOrderVo>> query_list(String orderNo, String phone, int current, int pageSize, int status, String userPhone);


    /**
     * 根据订单编号查询数据
     *
     * @param no 订单编号
     * @return
     */
    BaseResponse<OrderDetailVo> query_no(String no);

    /**
     * 搜索订单数据
     *
     * @param adminOrderDTO 搜索条件
     * @return
     */
    BaseResponse<PageResult<AdminOrderVO>> query_search(AdminOrderDTO adminOrderDTO);
}
